const loaderUtils = require('loader-utils');

module.exports = function (soure) {
    console.log('soure+++', soure);

    const options = loaderUtils.getOptions(this);
    const callback = this.async();

    // callback(null, result, map, meta);

    setTimeout(() => {
        const result = soure.replace('dell', options.name);
        callback(null, result);
    }, 1000);
};

//this.async // 告诉 loader-runner 这个 loader 将会异步地回调。返回 this.callback。
